package com.ums.scumspay.converter;

import com.ums.scumspay.entity.PayOrder;
import com.ums.scumspay.entity.resp.PayOrderPosResp;
import com.ums.scumspay.entity.resp.PayOrderResp;
import org.mapstruct.CollectionMappingStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;

import java.util.List;

@Mapper(componentModel = "spring",
        collectionMappingStrategy = CollectionMappingStrategy.ADDER_PREFERRED,
        nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface PayOrderConverter {

    List<PayOrderResp> entity2Resp(List<PayOrder> payOrders);
}
